/* 全局样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
  }
  
  button {
    cursor: pointer;
    transition: var(--transition);
  }
  
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* 卡片样式 */
  .card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
  }
  
  /* 表单元素 */
  input, select, textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    width: 100%;
  }
  
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
  }
  
  /* 按钮样式 */
  .btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
  }
  
  .btn-danger {
    background-color: var(--danger-color);
    color: white;
  }
  
  .btn-danger:hover {
    background-color: #d1145a;
  }
  
  .btn-success {
    background-color: var(--success-color);
    color: white;
  }
  
  .btn-success:hover {
    background-color: #3aa8d8;
  }
  
  .btn-warning {
    background-color: var(--warning-color);
    color: white;
  }
  
  .btn-warning:hover {
    background-color: #e07e0c;
  }
  
  /* 表格样式 */
  .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
  }
  
  .table tr:hover {
    background-color: #f8f9fa;
  }
  
  .table tr:last-child td {
    border-bottom: none;
  }
  
  /* 导航栏样式 */
  .nav-bar {
    width: 250px;
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-bar h2 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }
  
  .nav-bar ul {
    list-style: none;
  }
  
  .nav-bar li {
    margin: 15px 0;
  }
  
  .nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }
  
  .nav-bar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .router-link-exact-active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
  }
  
  /* 主内容区域 */
  .content {
    margin-left: 250px;
    padding: 30px;
  }
  
  .page-title {
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
  }
  
  /* 表单组 */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
  }
  
  /* 响应式布局 */
  @media (max-width: 768px) {
    .nav-bar {
      width: 100%;
      height: auto;
      position: relative;
      padding: 15px;
    }
    
    .nav-bar h2 {
      margin-bottom: 15px;
    }
    
    .nav-bar ul {
      display: flex;
      overflow-x: auto;
      padding-bottom: 10px;
    }
    
    .nav-bar li {
      margin: 0 10px;
      white-space: nowrap;
    }
    
    .content {
      margin-left: 0;
      padding: 20px;
    }
  }